package net.csdn.business.common.domain.issue.event;

import lombok.*;
import lombok.experimental.SuperBuilder;

/**
 * @author likun
 * @date 2022/11/24 18:16
 */
@Data
@SuperBuilder
@EqualsAndHashCode(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
@ToString(callSuper = true)
public class PinEventDto extends BaseEventDto {
    private Integer pin;

    public static PinEventDto buildChangeEvent(String id, Long projectId, String actionUid, Integer pin) {
        return PinEventDto.builder()
                .id(id).projectId(projectId)
                .actionUid(actionUid).pin(pin)
                .build();
    }
}